extends ../common/layout.pug

block content
    form(action="/user", method="post")
        label(for="username") 用户名
        input(type="text",name='username' id='username')
        label(for="password") 密码
        input(type="text",name='password' id='password')
        label(for="nickname") 昵称
        input(type="text",name='nickname' id='nickname')
        input(type="submit")

    table(border=1)
        tr
            th id
            th username
            th nickname
            th 操作
        each user in users
            tr
                td #{user.id}
                td #{user.username}
                td #{user.nickname}
                td
                    a(href="/user/"+user.id)  删除
